package org.example.controller;

import org.example.service.OperateClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyishan
 * @date 2023/7/21 14:11
 * @apiNote
 */

@RestController
@RequestMapping("base/")
public class OperateController {
    @Autowired
    private OperateClient client;

    @GetMapping("/test")
    public double test(double a,double b){
        return client.receiveGreeting(a,b);
    }
}
